﻿
using System.Web.Optimization;

namespace RiderShop.WebSite.View.App_Start
{
    public class BundleConfig
    {
        // 有关 Bundling 的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Utility/jquery-{version}.min.js"));

            bundles.Add(new ScriptBundle("~/bundles/jquerymobile").Include(
                        "~/Utility/jquery.mobile-{version}.min.js"));

            //bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
            //            "~/Scripts/jquery.unobtrusive*",
            //            "~/Scripts/jquery.validate*"));

            // 使用 Modernizr 的开发版本进行开发和了解信息。然后，当你做好
            // 生产准备时，请使用 http://modernizr.com 上的生成工具来仅选择所需的测试。
            //bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
            //            "~/Scripts/modernizr-*"));

            //bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css"));

            //bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
            //            "~/Content/themes/base/jquery.ui.core.css",
            //            "~/Content/themes/base/jquery.ui.resizable.css",
            //            "~/Content/themes/base/jquery.ui.selectable.css",
            //            "~/Content/themes/base/jquery.ui.accordion.css",
            //            "~/Content/themes/base/jquery.ui.autocomplete.css",
            //            "~/Content/themes/base/jquery.ui.button.css",
            //            "~/Content/themes/base/jquery.ui.dialog.css",
            //            "~/Content/themes/base/jquery.ui.slider.css",
            //            "~/Content/themes/base/jquery.ui.tabs.css",
            //            "~/Content/themes/base/jquery.ui.datepicker.css",
            //            "~/Content/themes/base/jquery.ui.progressbar.css",
            //            "~/Content/themes/base/jquery.ui.theme.css"));



            bundles.Add(new ScriptBundle("~/bundles/rongji/js").Include(
                        "~/Utility/jquery.validate.js",
                        "~/Utility/jquery.validate.extend.js",
                        "~/Utility/jquery.cookie.js",
                        "~/Themes/RongJi/Style/plugins/fancybox-2.1.5/jquery.fancybox.pack.js",
                        "~/Themes/RongJi/Style/plugins/bootstrap/twitter-bootstrap-v2/js/bootstrap-modal.js",
                        "~/Utility/pages/jquery.query-2.1.7.js",
                        "~/Utility/pages/pg_global.js",
                        "~/Themes/RongJi/Style/base/js/all.js"
                        ));

            BundleTable.EnableOptimizations = true;
        }
    }
}